<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/bootstrap.css" />
<title>Administrador de Lenguajes</title>
</head>
<body>
	
		
	
	<div class="container-fluid">
	
		<ul class="breadcrumb">
			<li><a href="<%=request.getContextPath()%>">Home</a> <span class="divider">/</span></li>
			<li class="active">Administrador de Lenguajes</li>
		</ul>
	
		<div >
			<table class="table table-striped">
				<thead>
					<tr>
						<th></th>
						<th>Lenguaje</th>
						<th>Comando compilador</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${languageList}" var="language">
						<tr>
							<td><input type="checkbox"></td>
							<td><c:out value="${language.languageName}" /></td>
							<td><c:out value="${language.compileCommand}" /></td>
							<td><a class="btn" href=" <%=request.getContextPath()%>/editLanguage?id=<c:out value="${language.id}"/>">Editar</a></td>
							<td><a class="btn btn-danger" href=" <%=request.getContextPath()%>/deleteLanguage?id=<c:out value="${language.id}"/>">Eliminar</a></td>
						</tr>
					</c:forEach>
	<!-- 				<tr> -->
	<!-- 					<td> -->
	<%-- 						<a href=" <%=request.getContextPath()%>/LanguageController?action=add">Agregar Lenguaje</a> --%>
	<!-- 					</td> -->
	<!-- 				</tr> -->
				</tbody>
			</table>
			
			<a class="btn btn-primary" href=" <%=request.getContextPath()%>/addLanguage">Agregar Lenguaje</a>
		</div>
	</div>
</body>
</html>